package com.ah.shanxi_demo.mapper;

import com.ah.shanxi_demo.common.MyMapper;
import com.ah.shanxi_demo.entity.SxOrderReceipt;
import com.ah.shanxi_demo.sync.param.result.SyncReceiptResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface SxOrderReceiptMapper extends MyMapper<SxOrderReceipt> {

    /**
     * 根据工单id 创建工单回执表信息 先查询---》再插入
     * @param orderId
     * @return
     */
    SxOrderReceipt selectByOrderId(@Param("orderId") Long orderId);
    Boolean insertOrderReceipt(SxOrderReceipt sxOrderReceipt);

    //根据工单id 查询关联表注册信息以及关联表工单信息
    SyncReceiptResult selectSyncReceiptResult(@Param("orderId") Long orderId);

    //查询回执表详情
    SxOrderReceipt selectById(@Param("orderId") Long orderId);

}